home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: What should be returned?
- Date: 20 Jan 1996 10:13:07 -0500
- Organization: University of Maryland Baltimore County
- Message-ID: <4dr0q3$87n@umbc9.umbc.edu>
- References: <4dj8pv$cjd@eng_ser1.erg.cuhk.hk> <DLEvrv.K85@freenet.durham.org>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Chris Schmidt <cschmidt@freenet.durham.org> wrote:
- |> I myself am just starting to learn this stuff too, but from what I have
- |> read so far.. if you do not require an exit value from the program use:
- |>
- |> void main(void)
-
- <snip>
-
- |> You C gurus out there can correct me if I am wrong on this..I AM just a
- |> rookie and don't want to get into the bad habits this soon ;-)
-
- Then read the FAQ!!! It doesn't matter what "YOU" require it matters what
- the language requires to produce executables with defined behavior. The
- main() function returns an int plain and simple. If you don't use the
- return value that's fine, but one day someone or something may.
-
- Read FAQ questions 11.12, 11.14 and 11.15.
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-